package com.yjh.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableEurekaServer
@MapperScan(basePackages={"com.yjh.admin.mapper"})
@EntityScan(basePackages={"com.yjh.admin.entity"})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableAsync
@EnableDiscoveryClient
public class HdssAdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(HdssAdminApplication.class, args);
    }

}
